import 'package:json_annotation/json_annotation.dart';

part 'WordBookDto.g.dart';

///WordBookDto
@JsonSerializable()
class WordBookDto {

  ///词书介绍
  @JsonKey(name: "description")
  String? description;

  ///词书ID
  @JsonKey(name: "id")
  String? id;

  ///词书名
  @JsonKey(name: "name")
  String? name;

  WordBookDto({
    this.description,
    this.id,
    this.name,
  });

  factory WordBookDto.fromJson(Map<String, dynamic> json) => _$WordBookDtoFromJson(json);

  Map<String, dynamic> toJson() => _$WordBookDtoToJson(this);
}